package com.jd.enums;

import lombok.Getter;

@Getter
public enum  GlobalErrorCode {
    OK("200","成功"),
    ERROR("-1","服务错误"),
    // 100xx公共异常
    NULL("10001","参数不能为空"),
    PHONE_ERROR("10002","手机不为空 "),
    OPERATING_FREQUENTLY_ERROR("10003","请勿频繁操作"),
    USER_EXIST_ERROR("10004","用户已注册"),
    CODE_MISMATCH_ERROR("10006","验证码错误")
    ;



    private String code;
    private String message;

    GlobalErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
